/* 通用样式 */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #333;
}

/* 导航栏 */
.nav {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

/* 登录容器 */
.login-container {
    width: 100%;
    height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 登录对话框 */
.login-dialog {
    width: 400px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-dialog:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.login-dialog h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* 输入框行 */
.row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.row label {
    margin-right: 10px;
    color: #6a11cb;
    font-size: 18px;
}

.row input {
    width: 100%;
    height: 40px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.row input:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 8px rgba(106, 17, 203, 0.5);
}

/* 注册按钮 */
#submit {
    width: 100%;
    height: 40px;
    background-color: #6a11cb;
    color: white;
    border: none;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#submit:hover {
    background-color: #2575fc;
    transform: scale(1.05);
}

#submit:active {
    background-color: #4a00e0;
    transform: scale(0.95);
}

/* 登录链接 */
.login-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.login-link a {
    color: #6a11cb;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

/* 自定义弹框样式 */
.custom-alert {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: #6a11cb; /* 默认背景色 */
    color: #fff;
    text-align: center;
    z-index: 1000; /* 确保弹框在最上层 */
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 弹框内容 */
.alert-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* 弹框消息 */
#alertMessage {
    font-size: 16px;
    margin: 0;
}

/* 关闭按钮 */
#alertClose {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
}

#alertClose:hover {
    opacity: 0.8;
}

/* 弹框类型样式 */
.custom-alert.success {
    background-color: #28a745; /* 成功背景色 */
}

.custom-alert.error {
    background-color: #dc3545; /* 错误背景色 */
}

.custom-alert.info {
    background-color: #6a11cb; /* 信息背景色 */
}